package day1113_2;

import java.io.IOException;
import java.io.RandomAccessFile;

public class F1 {
    public static void main(String[] args) throws IOException {
        RandomAccessFile raf=
           new RandomAccessFile("D:\\1113.txt","rw");//1.创建对象raf

        raf.writeInt(3);//2.调用writeInt()
        raf.writeInt(4);
        raf.writeInt(6);

        raf.seek(8);//从1113.txt跳过8个字节开始读取数据
        System.out.println(raf.readInt());

        raf.close();//3.raf的close()
    }
}


